using WeatherMcpServer.Data.Entities;

namespace WeatherMcpServer.Data.Repositories;

/// <summary>
/// 仓储接口：预警规则。
/// </summary>
public interface IWeatherRuleRepository
{
    Task<IReadOnlyList<WeatherRule>> GetEnabledRulesAsync(WeatherType? type = null, string? regionCode = null, CancellationToken ct = default);
    Task<WeatherRule> AddAsync(WeatherRule rule, CancellationToken ct = default);
    Task<int> SaveChangesAsync(CancellationToken ct = default);
}
